
import request from '@/utils/request'

// 查询证书管理列表
export function projectContractList(query) {
  return request({
    url: '/system/projectContract/list',
    method: 'get',
    params: query
  })
}

export function listSelect(query) {
  return request({
    url: '/system/projectContract/listSelect',
    method: 'get',
    params: query
  })
}

// 禁用启用项目 0启用 1禁用
export function effectSupplier(status, projectContractIds) {
  return request({
    url: '/system/projectContract/' + status + '/' + projectContractIds,
    method: 'put',
  })
}


// 新增证书管理
export function projectContractAdd(data) {
  return request({
    url: '/system/projectContract',
    method: 'post',
    data: data
  })
}
export function projectContractEdit(data) {
  return request({
    url: '/system/projectContract',
    method: 'put',
    data: data
  })
}
export function projectContractDel(data) {
  return request({
    url: '/system/projectContract/' + data,
    method: 'DELETE',
    data: data
  })
}

export function projectContractInfo(id) {
  return request({
    url: '/system/projectContract/' + id,
    method: 'get',
    params: id
  })
}

// 统计 已收款/未收款
export function moneyReport() {
  return request({
    url: '/system/projectContract/moneyReport',
    method: 'get',
  })
}

